import './config.js';  //全局配置
import './server.js';  //全局接口


import layout from '../../views/layout.js'
import router from './router.js'
import gloable_state from "./state.js";
import  setupCustomComponents  from './customComponents.js'
const {createApp}=Vue;
const vueApp= createApp(layout);
vueApp.use(router);


setTimeout(()=>{
    vueApp.mount('#root');
},100);


setupCustomComponents(vueApp);

vueApp.config.globalProperties.$BASE_IMG_URL =(url)=>{
    return "https://langjie.oss-cn-hangzhou.aliyuncs.com/space/root/project/ruyunsuixing/img"+url;
}

vueApp.use(vant);

vueApp.config.globalProperties.$gloable_state =gloable_state;
vueApp.config.isCustomElement = tag => tag.startsWith('ming-input');


window.vueApp=vueApp;